<?php
    class Access {
        //Alias sur table : acc
        public $module;
        public $profil;
        public $droit;

        //Constructeur complet
        //(Module)module, (Profil)profil
        public function __construct($module, $profil, $droit) {
            $this->setModule($module);
            $this->setProfil($profil);
            $this->setDroit($droit);
        }

        //GETTERS ET SETTERS
        public function getModule() {return $this->module;}
        public function getProfil() {return $this->profil;}
        public function getDroit() {return $this->droit;}

        public function setModule($temp) {$this->module = $temp;}
        public function setProfil($temp) {$this->profil = $temp;}
        public function setDroit($temp) {$this->droit = intval($temp);}
    }

?>